<div class="modal-dialog">
    <div class="modal-content">
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
            <h4 class="modal-title">文件借阅</h4>
        </div>
        <div class="modal-body">
            <form class="modalForm form-horizontal" action="{:url('index/Borrows/auditFile')}" method="post">
                <input type="hidden" name="id" value="{$data.bor_id}">
                <input type="hidden" name="fq" class="fq" value="0">
                <input type="hidden" name="dh" class="dh" value="0">

                <div class="form-body">
                    <div class="form-group">
                        <label class="col-md-3 control-label">借阅文件</label>
                        <div class="col-md-9">
                            <input type="text" readonly class="form-control guidf" value="{$data.arc_name}.{$data.arc_type}" placeholder="请输入文件夹名称">
                            <input type="hidden" name="arc_id" value="{$data.arc_id}" class="arc_id">
                        </div>
                    </div>
                    {if condition="$data['bor_status'] eq 2"}
                    <div class="form-group">
                        <label class="col-md-3 control-label">该借阅申请审核通过</label>
                        <div class="col-md-9">
                            <textarea readonly name="bor_desc" class="form-control">{$data.bor_desc}</textarea>
                        </div>
                    </div>
                    {elseif condition="$data['bor_status'] eq 3"/}
                    <div class="form-group">
                        <label class="col-md-3 control-label">该借阅申请已被打回</label>
                        <div class="col-md-9">
                            <textarea readonly name="bor_desc" class="form-control">{$data.bor_desc}</textarea>
                        </div>
                    </div>
                    {else/}
                    <div class="form-group">
                        <label class="col-md-3 control-label">{if condition="$data['bor_status'] eq 1"}评论内容{else/}审核评论{/if}</label>
                        <div class="col-md-9">
                            <textarea name="bor_desc" class="form-control"></textarea>
                        </div>
                    </div>
                    {/if}
                </div>
            </form>
        </div>
        <div class="modal-footer">
            {if condition="$data['bor_status'] eq 2"}<button type="button" class="btn default model1close" data-dismiss="modal">关闭</button>
            {else/}
            <button type="button" class="btn default model1close" data-dismiss="modal">关闭</button>
            {if condition="$data['bor_status'] eq 1"}<button type="button" class="btn red dhBtn">打回</button><button type="button" class="btn blue save">通过</button>{/if}
            {/if}
        </div>
    </div>
</div>


<script>
    dt().modalSave();
</script>